package net.monare.mifss.admin.ui.valid;

import org.apache.commons.lang.StringUtils;

import com.vaadin.data.validator.AbstractValidator;

public class EmptyStringValidator extends AbstractValidator<String>{


	private static final long serialVersionUID = 9189913710441768061L;

	public EmptyStringValidator(String errorMessage) {
		super(errorMessage);
	}
	
	@Override
	protected boolean isValidValue(String value) {
		return StringUtils.isNotEmpty(value);
	}

	@Override
	public Class<String> getType() {
		return String.class;
	}

}
